<template>
  <a class="rightItem" :href="href">
    <img :src="img" />
    <p>{{ title }}</p>
  </a>
</template>

<script>
import { defineComponent } from 'vue'
export default defineComponent({
  props: {
    img: {
      typeof: String,
      default: ''
    },
    title: {
      typeof: String,
      default: '中绿蔚蓝湾｜营销中心暨展示区 盛大开业'
    },
    href: {
      typeof: String,
      default: 'javascript:;'
    }
  }
})
</script>

<style lang='less' scoped>
.rightItem {
  height: 182px;
  margin-right: 22px;
  img {
    width: 189px;
    height: 130px;
  }
  p {
    font-family: 'HarmonyOS Sans SC';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    width: 176px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
.rightItem:nth-child(2n) {
  margin-right: 0;
}
</style>
